import axios from "axios";
import qs from 'qs';

const instance=axios.create()

const myaxios={
    get(url,params){
       return instance({
        method:'get',
        url,
        params
       })
    },
    
    post(url,params){
        return instance({
            method:'post',
            url,
            data:qs.stringify(params)
        })
    },

   
}

export default myaxios